/*
{
  "name": "iPhone15,4",
  "system_name": "iOS",
  "system_version": "17.0.1",
  "model": "iPhone",
  "language": "en_US",
  "app_version": "1.0.11",
  "build_number": "23",
  "app_env": "test"
}
*/
class UserAgentModel {
  String? name;
  String? systemName;
  String? systemVersion;
  String? model;
  String? language;
  String? appVersion;
  String? buildNumber;
  String? appEnv;
  Map<String, dynamic>? rawData;

  UserAgentModel ({
    this.name,
    this.systemName,
    this.systemVersion,
    this.model,
    this.language,
    this.appVersion,
    this.buildNumber,
    this.appEnv,
  });

  static UserAgentModel fromJson(Map<String, dynamic> json){
    UserAgentModel model = UserAgentModel();
    model.name = json["name"]?.toString();
    model.systemName = json["system_name"]?.toString();
    model.systemVersion = json["system_version"]?.toString();
    model.model = json["model"]?.toString();
    model.language = json["language"]?.toString();
    model.appVersion = json["app_version"]?.toString();
    model.buildNumber = json["build_number"]?.toString();
    model.appEnv = json["app_env"]?.toString();
    model.rawData = json;
    return model;
  }
}

